package com.rdc.example.service;

import com.rdc.example.bean.Result;
import com.rdc.example.bean.dto.UserDTO;

import java.util.List;


/**
 * @author duck
 * @description 用户service业务层接口
 */
public interface UserService {

    /**
     * 用户登录
     * @param userName 用户名
     * @param password 密码
     * @return 返回登录结果Result
     */
    Result login(String userName, String password) throws Exception;

    /**
     * 用户注册
     * @param userDTO userDTO类
     * @return 返回注册结果Result
     */
    Result register(UserDTO userDTO) throws Exception;
    /**
     * 用户信息展示
     * @param userName 用户名称
     * @return userDTO
     */
    UserDTO getUserByUserName(String userName) throws Exception;

    List<UserDTO> searchUsersByName(String keyword) throws Exception;

    List<UserDTO> getUserDTOListByIds(List<Integer> userIds);
}
